Chapter 2 Questions

								Name: __________________

Print and hand in, or save as  H:\Alice\handin\Chapter2Questions.rtf on your student drive when you are done.

1. Describe each of the four steps used in the process of creating a computer program.

 

 
2. (a) What is an algorithm?

 
   (b) In what way is an algorithm related to a program?

 

3. (a) Describe what is meant by the term method.

   (b) What does a method define?

4.  What is meant by the phrase "one block of code can be nested in another"?

 
5.  How do you know whether a computer program has a bug?

6.  What is the purpose of a set instruction?

7.  If comments are ignored by Alice then why do we add comments to our programs?

 
8.  What built-in method is used to:
      (a) change the orientation of an object

      (b) display a comic-book style text bubble on the screen

      (c) synchronize the movement of one object to the movement of another